using System;
using System.Text;

namespace OVS.BusinessObjects
{
	[Serializable()]
	public partial class Video
	{
		private int _vide_id;

		public int vide_id
		{
			get { return _vide_id; }
			set { _vide_id = value; }
		}

		private string _vide_fn;

		public string vide_fn
		{
			get { return _vide_fn; }
			set { _vide_fn = value; }
		}

		public Video()
		{ }

		public Video(int vide_id,string vide_fn)
		{
			this.vide_id = vide_id;
			this.vide_fn = vide_fn;
		}

		public override string ToString()
		{
			return "vide_id = " + vide_id.ToString() + ",vide_fn = " + vide_fn;
		}

		public partial class vide_idComparer : System.Collections.Generic.IComparer<Video>
		{
			public SorterMode SorterMode;
			public vide_idComparer()
			{ }
			public vide_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Video> Membres
			int System.Collections.Generic.IComparer<Video>.Compare(Video x, Video y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.vide_id.CompareTo(x.vide_id);
				}
				else
				{
					return x.vide_id.CompareTo(y.vide_id);
				}
			}
			#endregion
		}
		public partial class vide_fnComparer : System.Collections.Generic.IComparer<Video>
		{
			public SorterMode SorterMode;
			public vide_fnComparer()
			{ }
			public vide_fnComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Video> Membres
			int System.Collections.Generic.IComparer<Video>.Compare(Video x, Video y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.vide_fn.CompareTo(x.vide_fn);
				}
				else
				{
					return x.vide_fn.CompareTo(y.vide_fn);
				}
			}
			#endregion
		}
	}
}
